package com.mobisys.live.service;

import com.mobisys.live.dao.mapper.LiveMapper;
import com.mobisys.live.dao.mapper.UserLiveWatchingRecordMapper;
import com.mobisys.live.dao.model.UserLiveWatchingRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserLiveWatchingRecordService {
    @Autowired
    private UserLiveWatchingRecordMapper userLiveWatchingRecordMapper;

    public int deleteByPrimaryKey(String id) {
        return userLiveWatchingRecordMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserLiveWatchingRecord record) {
        return userLiveWatchingRecordMapper.insert(record);
    }

    public int insertSelective(UserLiveWatchingRecord record) {
        return userLiveWatchingRecordMapper.insertSelective(record);
    }

    public UserLiveWatchingRecord selectByPrimaryKey(String id){
        return userLiveWatchingRecordMapper.selectByPrimaryKey(id);
    }




    public int updateByPrimaryKeySelective(UserLiveWatchingRecord record){
        return userLiveWatchingRecordMapper.updateByPrimaryKeySelective(record);
    }

    int updateByPrimaryKey(UserLiveWatchingRecord record){
        return userLiveWatchingRecordMapper.updateByPrimaryKey(record);
    }

    public List<UserLiveWatchingRecord> selectListByLiveId(String liveId){
        return userLiveWatchingRecordMapper.selectListByLiveId(liveId);
    }
}
